import request from '@/utils/request'

export function listAw(query) {
  return request({
    url: '/award/list',
    method: 'get',
    params: query
  })
}

export function statistics(query) {
  return request({
    url: '/award/statistics',
    method: 'get',
    params: query
  })
}

export function queryUserDetails(query) {
  return request({
    url: '/award/getAwardUser',
    method: 'get',
    params: query
  })
}

export function deletePlan(query) {
  return request({
    url: '/award/deletePlan',
    method: 'get',
    params: query
  })
}

export function getPlan(query) {
  return request({
    url: '/award/getPlan',
    method: 'get',
    params: query
  })
}

export function createAw(data) {
  return request({
    url: '/award/create',
    method: 'post',
    data
  })
}

export function createPlan(data) {
  return request({
    url: '/award/createPlan',
    method: 'post',
    data
  })
}

export function updateAw(data) {
  return request({
    url: '/award/update',
    method: 'post',
    data
  })
}

